<template>
  <div>
    this is a test vue
    you can ignore this

  </div>
</template>

<script>
import * as tf from "@tensorflow/tfjs";

export default {
  name: "test",
  mounted() {

    var _this=this
    const MODEL_URL = 'http://localhost:2444/2021208041/model.json'
    const  loadModel = (async function () {
      window.model = await tf.loadLayersModel(MODEL_URL);
      console.log('load model----------------Dog_vs_Cat')
      console.log(model.summary())
    })
    loadModel().then(async function(){
      var result=await model.save('http://localhost:2444/ModelCenter/uploadMyModel')
      console.log(result)
    })
  }

}


</script>

<style scoped>

</style>
